/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2017
 */

package com.shop.pandian.app.model;

import java.sql.Timestamp;

import javax.persistence.*;

import org.hibernate.annotations.Cascade;
import org.hibernate.validator.constraints.*;

import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.validation.constraints.*;

import com.shop.pandian.framework.base.dao.BaseUpdatableEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * @author Xi Wei
 * @version 1.0
 * @since 1.0
 */
 @Entity
@Table(name = "product_category")
public class ProductCategory extends BaseUpdatableEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;

	


	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	
	@NotBlank @Length(max=100)
	@Column(name = "category_name", unique = false, nullable = false, insertable = true, updatable = true, length = 100)
	private java.lang.String categoryName; //categoryName
	
	@Length(max=255)
	@Column(name = "category_desc", unique = false, nullable = true, insertable = true, updatable = true, length = 255)
	private java.lang.String categoryDesc; //categoryDesc
	
	
	@Column(name = "parent_id", unique = false, nullable = true, insertable = true, updatable = true, length = 19)
	private java.lang.Long parentId; //parentId
	
	
	
	//columns END



	
	
	
	public java.lang.String getCategoryName() {
		return this.categoryName;
	}
	
	public void setCategoryName(java.lang.String value) {
		this.categoryName = value;
	}

	public java.lang.String getCategoryDesc() {
		return this.categoryDesc;
	}
	
	public void setCategoryDesc(java.lang.String value) {
		this.categoryDesc = value;
	}

	public java.lang.Long getParentId() {
		return this.parentId;
	}
	
	public void setParentId(java.lang.Long value) {
		this.parentId = value;
	}




}

